/**
 * 
 */
package br.com.skynix.tcmc.converter;

import javax.faces.context.FacesContext;
import javax.faces.convert.FacesConverter;
import javax.servlet.ServletContext;

import br.com.skynix.tcmc.model.rh.Empresa;
import br.com.skynix.tcmc.service.rh.empresas.EmpresaService;
import br.com.skynix.tcmc.util.WebUtil;

/**
 * @author mgrb
 * 
 */
@FacesConverter(value = "empresa_converter")
public class EmpresaConverter extends
		AbstractEntidadeAuditavelConverter<Empresa> {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * br.com.skynix.tcmc.converter.AbstractEntidadeAuditavelConverter#getService
	 * ()
	 */
	@Override
	protected EmpresaService getService() {
		return (EmpresaService) WebUtil.lookUpService(EmpresaService.class,
				(ServletContext) FacesContext.getCurrentInstance()
						.getExternalContext().getContext());
	}
}
